require("core.IAppGrow")

tcl_app = IAppGrow:new()

-- function tcl_app:startUp()
--     logger.debug('tcl_app','tcl_app:startUp')
-- end

function tcl_app:setAdapter()
    logger.debug('tcl_app', 'tcl_app:setAdapter')
end

function tcl_app:isLeaveHere()
    logger.debug('tcl_app', 'tcl_app:isLeaveHere')
    return {leave = false, success = false}
end

function tcl_app:isStarted()
    logger.debug('tcl_app', ' tcl_app:isStarted')
    return true
end

function tcl_app:regist()
    logger.debug('tcl_app', '-tcl_app:regist')
    local phone_num = smsapi.fetch_phonenum('1234')
    logger.debug('tcl_app', ' 获取手机号码=' .. phone_num)
    local vcode = smsapi.fetch_code()
    logger.debug('tcl_app', ' 获取验证码=' .. vcode)
    return {
        phoneNum = phone_num,
        password = vcode,
        description = '注册成功'
    }

end

function tcl_app:play() logger.debug('tcl_app', 'tcl_app:play') end

do return tcl_app end
